package org.springframework.prospring.ticket.domain;

import java.util.List;
import java.util.Set;
import java.util.HashSet;

/**
 * Created by IntelliJ IDEA.
 * User: Adm
 * Date: 12/07/2006
 * Time: 23:06:47
 * To change this template use File | Settings | File Templates.
 */
public class Field {
    Long id;
    String name;
    Integer players;
    /*es cancha techada*/
    Boolean isRoofed;
    SurfaceType surfaceType;
    Set turns;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public Integer getPlayers() {
        return players;
    }

    public void setPlayers(Integer players) {
        this.players = players;
    }


    public Boolean getIsRoofed() {
        return isRoofed;
    }

    public void setIsRoofed(Boolean isRoofed) {
        this.isRoofed = isRoofed;
    }

    public SurfaceType getSurfaceType() {
        return surfaceType;
    }

    public void setSurfaceType(SurfaceType surfaceType) {
        this.surfaceType = surfaceType;
    }

    public Set getTurns() {
        return turns;
    }

    public void setTurns(Set turns) {
        this.turns = turns;
    }


    public void addTurn(Turn turn){
        if (this.turns == null){
            this.turns = new HashSet();
        }
        this.turns.add(turn);
    }

}
